const baseSize = 100
const baseWidth = 375

const setHtmlFontSize = () => {
  const windowWidth = window.innerWidth
  document.documentElement.style.fontSize = windowWidth / baseWidth * baseSize + 'px'
}

setHtmlFontSize()

window.addEventListener('resize', setHtmlFontSize, false)
